﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BankSystem
{
    internal class CreditAccount:Account
    {
        public int negLimit { get; set; }
        public override int maxwithdraw
        {
            get { return balance + negLimit; }
        }
        public CreditAccount(string id, int type, int balance, int negLimit) : base(id, type, balance)
        {
            this.negLimit = negLimit;
        }       
    }
}
